#include <iostream>
using namespace std;


int getBitAt(int num, int offset){
	for(; offset>0; num/=10,--offset);
	return num%10;

}


bool isPalindrome(int x) {
	// Start typing your C/C++ solution below
	// DO NOT write int main() function
	//get bit num of x
	if(x<0)
		return false;
	if(x<10)
		return true;

	int t = x;
	int num = 0;
	while(t > 0){
		t /= 10;
		++num;
	}

	bool res = true;
	for(int i=0,j=num-1; i<j; ++i, --j){
		if(getBitAt(x, i) != getBitAt(x, j)){
			res = false;
			break;
		}
	}
	return res;
}

int main(){



}